import { getStoreId } from '@/utils'
import request from '@/utils/request'
/**
 * 分页列表
 * @param {*} param 
 * @param {*} pageSize 
 * @param {*} pageNo 
 */
export function anewVisitList(param, pageSize, pageNo) {
  const data = {
    pageNo,
    pageSize,
    param: {
      ...param
    }
  }
  return request.post('/anewVisit/page', data)
}

/**
 * 删除
 * @param {*} id
 */
export function deleteVisit(id) {
  return request.delete(`/anewVisit/del/${id}`)
}

/**
 * 删除
 * @param {*} id
 */
export function findVisit(id) {
  return request.get(`/anewVisit/findById/${id}`)
}
/**
 * 保存回访记录
 * @param {*} id
 */
export function saveVisit(options) {
  return request.post(`/anewVisit/saveRecord`, options)
}

/**
 * 获取工单完成未回访客户
 */
export function getAnewVisitfindClientIds() {
  return request.get(`/anewVisit/findClientIds/${getStoreId()}`)
}

